{$head_meta}
<title>{$action} | {$Think.config.title}</title>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
	<!-- BEGIN HEADER -->
	<div class="header navbar navbar-inverse navbar-fixed-top">
		<!-- BEGIN TOP NAVIGATION BAR -->
		<div class="navbar-inner">
			<div class="container-fluid">
				<!-- BEGIN LOGO -->
				<a class="brand" href="{:U('Admin/Index/index')}">
				<img src="__PUBLIC__/admin/assets/img/logo.png" alt="logo" />
				</a>
				<!-- END LOGO -->
				<!-- BEGIN RESPONSIVE MENU TOGGLER -->
				<a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">
				<img src="__PUBLIC__/admin/assets/img/menu-toggler.png" alt="" />
				</a>          
				<!-- END RESPONSIVE MENU TOGGLER -->            
				<!-- BEGIN TOP NAVIGATION MENU -->              
				<ul class="nav pull-right">
					<!-- BEGIN USER LOGIN DROPDOWN -->
					<li class="dropdown user">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
						<img alt="" src="__PUBLIC__/admin/assets/img/avatar1_small.jpg" />
						<span class="username">{$username}</span>
						<i class="icon-angle-down"></i>
						</a>
						<ul class="dropdown-menu">
							<li><a href="{:U('Admin/Index/index')}"><i class="icon-user"></i>个人信息</a></li>
							<li class="divider"></li>
							<li><a href="{:U('Admin/Login/logout')}"><i class="icon-key"></i>退出</a></li>
						</ul>
					</li>
					<!-- END USER LOGIN DROPDOWN -->
				</ul>
				<!-- END TOP NAVIGATION MENU --> 
			</div>
		</div>
		<!-- END TOP NAVIGATION BAR -->
	</div>
	<!-- END HEADER -->
	<!-- BEGIN CONTAINER -->
	<div class="page-container row-fluid">
		<!-- BEGIN SIDEBAR -->
		<div class="page-sidebar nav-collapse collapse">
			<!-- BEGIN SIDEBAR MENU -->        
			<ul class="page-sidebar-menu">
				<li>
					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
					<div class="sidebar-toggler hidden-phone"></div>
					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
				</li>
				{$menu}
			</ul>
			<!-- END SIDEBAR MENU -->
		</div>
		<!-- END SIDEBAR -->
		<!-- BEGIN PAGE -->
		<div class="page-content">
			<!-- BEGIN PAGE CONTAINER-->        
			<div class="container-fluid">
				<!-- BEGIN PAGE HEADER-->
				<div class="row-fluid">
					<div class="span12">  
						<!-- BEGIN PAGE TITLE & BREADCRUMB-->
						<h3 class="page-title">
							{$action}<small>&nbsp;&nbsp;{$Think.config.title}</small>
						</h3>
						<ul class="breadcrumb">
							<li>
								<a href="{$module_url}">{$module}</a>
								<i class="icon-angle-right"></i>
							</li>
							<li><a href="{$action_url}">{$action}</a></li>
						</ul>
						<!-- END PAGE TITLE & BREADCRUMB-->
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row-fluid">
					<div class="span12">
						  <table class="table table-bordered table-hover"  class="tab">
								<tr>											
									<th class="hidden-480">插件ID</th>
									<th class="hidden-480">插件名称</th>
									<th class="hidden-480">插件信息</th>
									<th class="hidden-480">插件状态</th>
									<th class="hidden-480">操作</th>
								</tr>
								<volist name="list" id="vo">
								<tr>
									<td class="hidden-480">{$vo.id}</td>
									<td class="hidden-480">{$vo.title}</td>
									<td class="hidden-480">作者:{$vo.author}&nbsp;&nbsp;&nbsp;版权:{$vo.copyright}&nbsp;&nbsp;&nbsp;描述信息:{$vo.description}</td>
									<td class="hidden-480">
										<eq name="vo.status" value="0">
											<font color="green">启用</font>-><a href='javascript:;' onclick="ajax({$vo.id})">禁用<else/><font color="red">禁用</font>-><a href='javascript:;' onclick="ajax({$vo.id})">启用</eq></a>
									</td>
									<td class="hidden-480">
										<a href="{:U('Admin/Webinfo/pluginManage')}?name={$vo.title}">管理</a>|
										<a href="{:U('Admin/Webinfo/pluginEdit')}?name={$vo.title}">配置</a>|
										<a href="javascript:;" onClick="JavaScript:return jconfirm('确认卸载吗?','{:U('Admin/Webinfo/pluginUninstall')}?id={$vo.id}')">卸载</a>|
										<a href="{:U('Admin/Webinfo/pluginDownload')}?name={$vo.title}">导出</a>
									</td>
								</tr>
								</volist>	
					      </table>
					</div>
				</div>
				<!-- END PAGE CONTENT-->
			</div>
			<!-- END PAGE CONTAINER-->
		</div>
		<!-- END PAGE -->
	</div>
	<!-- END CONTAINER -->
	{$footer}
	{$foot_js}  
	<script>
			
		jQuery(document).ready(function() {       
		   App.init();
		});
	</script>
	<script>
		function ajax(id)
		{
			$.post("{:U('Admin/Webinfo/pluginStatus')}", {id:id},
			function(data){
				if(data=='1')
				{
					window.location.reload(true);
				}
				else
				{
					$.dialog.alert(data);
				}
		   });
		}

		function jconfirm(str,url)
		{
		   $.dialog.confirm(str,function (){
				window.location.href = url;
		   });
		}
	</script>
</body>
<!-- END BODY -->
</html>
